package com.eas.biz.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eas.biz.dao.user.dataobject.AreaDO;
import com.eas.biz.dao.user.dataobject.AreaQuery;
import com.eas.biz.dao.user.interfaces.AreaDao;
import com.eas.biz.service.user.interfaces.AreaService;

@Service("areaService")
public class AreaServiceImpl implements AreaService {

    @Autowired
    private AreaDao areaDao;

    public int countByQuery(AreaQuery query) {
        return areaDao.countByQuery(query);
    }

    public int deleteById(long id) {
        return areaDao.deleteById(id);
    }

    public long insert(AreaDO areaDo) {
        return areaDao.insert(areaDo);
    }

    public AreaDO selectById(long id) {
        return areaDao.selectById(id);
    }

    public List<AreaDO> selectByQuery(AreaQuery query) {
        return areaDao.selectByQuery(query);
    }

    public int update(AreaDO areaDo) {
        return areaDao.update(areaDo);
    }

}
